package deco {
	import comp.Beverage;
	/**
	 * ...
	 * @author wibrst@qq.com
	 */
	public /*abstract*/ class CondimentDecorator extends Beverage{
		
		public function CondimentDecorator( beverage:Beverage ) {
			this._beverage = beverage;
			//this._sDesc = "Unknown CondimentDecorator";
			//this._nCost = 0;
		}
		
		override public function getDesc():String {
			return  new  Array( this._beverage.getDesc() , super._sDesc ).join("\n");
		}
		
		override public function cost():Number {
			return this._beverage.cost() + super._nCost;
		}
		
		protected var _beverage:Beverage;
	}

}